package cn.sciento.onelink.sim.simuser.batch;

import cn.sciento.onelink.CommonResponse;
import cn.sciento.onelink.LinkRequest;
import cn.sciento.onelink.utils.TransIdUtil;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 物联卡批量查询
 * @author walton
 */
@Data
public class SimBatchRequest extends LinkRequest<CommonResponse<SimBatchResult>> {
    private String appId;

    private String token;

    private String jobId;

    public SimBatchRequest(String appId, String token, String jobId) {
        super(Method.GET);
        this.appId = appId;
        this.token = token;
        this.jobId = jobId;
        this.path="/ec/query/sim-batch-result";
        Map<String, Object> headMap = new HashMap();
        this.setHeader(headMap);
        Map<String, Object> bodyMap = new HashMap();
        bodyMap.put("transid", TransIdUtil.generate(appId));
        bodyMap.put("token", token);
        bodyMap.put("jobId", jobId);
        this.setCompleteUrl(this.path,bodyMap);
    }
}
